package team.hyznrj.studentsys.exception;

import lombok.Getter;
import team.hyznrj.studentsys.enums.FileEnum;
import team.hyznrj.studentsys.enums.MarkEnum;

/**
 * @author ReMidDream
 * @date 2018-04-23 15:10
 **/
@Getter
public class MarkException extends RuntimeException{

    private Integer code;

    public MarkException(MarkEnum markEnum) {
        super(markEnum.getMessage());
        this.code = markEnum.getCode();
    }
}
